package com.hncj1.hello;

public class keybroad implements USB{
    private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public keybroad(String name) {
        this.name = name;
    }

    @Override
    public void connect() {
        System.out.println(name+"连接成功");

    }

    @Override
    public void disconnect() {
        System.out.println(name+"断开连接");
    }
    public void click(){
        System.out.println(name+"敲下了666");
    }
}
